How to manipulate the xml file in order to add new artists, albums and songs.

This tutorial will teach you how to modify the xml file in order to add your own artists. Let's check it out!



XML explanation

Let's open the xml file and let's take a look at it's structure:


One node looks like the one between those little red dots. It contains the path to the song (url="./content/mp3s/2.mp3"), the name of the artist (artist="ARTIST 2"), the album name (album="FIRST ALBUM"), the name of his song (track="SONG TITLE 2"), the album art - cover (coverart="./content/coverart/album1.jpg"), the link where clicking on the album art goes to (coverArtUrl="http://www.activeden.net") and wheither or not the song is downloadable (true or false). Just start modifying this data in order to add your own albums, artists and songs.



Adding albums

Let's take a look at the last node in our xml file:


As you can see, we changed our album name (album="SECOND ALBUM"). Yes! It is that simple! Changing the album name will automatically add a new album in our player's list. But adding a new album will normally request a new album cover art so we gotta change that also (coverart="./content/coverart/album2.jpg"). That's all!

:)